package com.fly.feishu.api.service;

import com.fly.feishu.api.AbstractJunitTest;
import com.fly.feishu.api.constant.FeishuApiConstants;
import com.fly.feishu.api.dto.WebAccessToken;
import com.fly.feishu.api.dto.WebAccessTokenCondition;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

public class FeishuTokenServiceImpl extends AbstractJunitTest {
    @Autowired
    private FeishuTokenService feishuTokenService;


    @Test
    public void getWebAccessToken() {
        WebAccessTokenCondition webAccessTokenCondition = WebAccessTokenCondition.builder()
                .grantType(FeishuApiConstants.WEB_TOKEN_GRANT_TYPE).code("sasdasd")
                .build();
        WebAccessToken webAccessToken = feishuTokenService.getWebAccessToken(webAccessTokenCondition);
        System.out.println(webAccessToken);
    }


}
